package com.hsnn.medstgmini.trading.pur.model.form;

import com.hsnn.medstgmini.trading.catalog.model.PurHospcatalog;

public class PurPlanForm {
	private String goodsCode;//商品编码
	private String drugCode;//药品编
	private String drugName;//通用名
	private String formName;//剂型
	private String specName;//规格
	private String factor;//转换系数
	private String unit;//单位
	private String compName;//生产企业
	private String prodCompId;//生产企业id
	private String projectName;//项目名
	private String proPrice;//采购价
	private String delComp;//配送企业
	private String projId;//项目Id
	private String updUser;//更新人
	private String hospId;//医疗机构ID
	private String status;//状态
	private String materialName;//材质
	private String drugMedicine;//国药准字
	public String getDrugMedicine() {
		return drugMedicine;
	}
	public void setDrugMedicine(String drugMedicine) {
		this.drugMedicine = drugMedicine;
	}
	private String formId;//剂型ID
	private String hospProCatId;//勾选目录ID
	private String proLimitPrice;//采购限价
	private String delCompId;//配送企业ID
	private String joinPlanUser;//加入计划人
	private String userName;//加入计划人名称
	private String joinPlanTime;//加入计划时间
	private String buyNum;//采购数量
	private String allPrice;//总金额
	private String proMoney;//采购金额（采购数量*采购金额）
	private String cartId;//购物计划Id
	private String backDrugFlag;//备案商品标志(另注：页传来查询条件为0非备案药品，1备案药品)
	private boolean lsBackDrugFlag;//临时备案
	private String bakCatalog; //备案类型
	private Double buyPrice;//采购金额
	private Integer main;//是否是主帐号 (0：否，1：是)
	private String cartIds;//生成订单时所勾选的购物计划Id
	private String drugId;//药品ID
	private PurHospcatalog catalogInfo;//目录信息
	private String beginTime;//开始时间
	private String endTime;//结束时间
	private String hospCode;
	private String goodsSource;
	private String bakPurCount;
	public String getBakPurCount() {
		return bakPurCount;
	}
	public void setBakPurCount(String bakPurCount) {
		this.bakPurCount = bakPurCount;
	}
	public String getGoodsSource() {
		return goodsSource;
	}
	public void setGoodsSource(String goodsSource) {
		this.goodsSource = goodsSource;
	}
	public String getHospCode() {
		return hospCode;
	}
	public void setHospCode(String hospCode) {
		this.hospCode = hospCode;
	}
	public String getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	public String getJoinPlanTime() {
		return joinPlanTime;
	}
	public void setJoinPlanTime(String joinPlanTime) {
		this.joinPlanTime = joinPlanTime;
	}
	public PurHospcatalog getCatalogInfo() {
		return catalogInfo;
	}
	public void setCatalogInfo(PurHospcatalog catalogInfo) {
		this.catalogInfo = catalogInfo;
	}
	public String getDrugId() {
		return drugId;
	}
	public void setDrugId(String drugId) {
		this.drugId = drugId;
	}
	public String getCartIds() {
		return cartIds;
	}
	public void setCartIds(String cartIds) {
		this.cartIds = cartIds;
	}
	public Integer getMain() {
		return main;
	}
	public void setMain(Integer main) {
		this.main = main;
	}
	public Double getBuyPrice() {
		return buyPrice;
	}
	public void setBuyPrice(Double buyPrice) {
		this.buyPrice = buyPrice;
	}
	public String getBackDrugFlag() {
		return backDrugFlag;
	}
	public void setBackDrugFlag(String backDrugFlag) {
		this.backDrugFlag = backDrugFlag;
	}
	public boolean isLsBackDrugFlag() {
		return lsBackDrugFlag;
	}
	public void setLsBackDrugFlag(boolean lsBackDrugFlag) {
		this.lsBackDrugFlag = lsBackDrugFlag;
	}
	public String getCartId() {
		return cartId;
	}
	public void setCartId(String cartId) {
		this.cartId = cartId;
	}
	public String getBuyNum() {
		return buyNum;
	}
	public void setBuyNum(String buyNum) {
		this.buyNum = buyNum;
	}
	public String getJoinPlanUser() {
		return joinPlanUser;
	}
	public void setJoinPlanUser(String joinPlanUser) {
		this.joinPlanUser = joinPlanUser;
	}
	public String getGoodsCode() {
		return goodsCode;
	}
	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}
	public String getDrugCode() {
		return drugCode;
	}
	public void setDrugCode(String drugCode) {
		this.drugCode = drugCode;
	}
	public String getDrugName() {
		return drugName;
	}
	public void setDrugName(String drugName) {
		this.drugName = drugName;
	}
	public String getFormName() {
		return formName;
	}
	public void setFormName(String formName) {
		this.formName = formName;
	}
	public String getSpecName() {
		return specName;
	}
	public void setSpecName(String specName) {
		this.specName = specName;
	}
	public String getFactor() {
		return factor;
	}
	public void setFactor(String factor) {
		this.factor = factor;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getCompName() {
		return compName;
	}
	public void setCompName(String compName) {
		this.compName = compName;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getProPrice() {
		return proPrice;
	}
	public void setProPrice(String proPrice) {
		this.proPrice = proPrice;
	}
	public String getDelComp() {
		return delComp;
	}
	public void setDelComp(String delComp) {
		this.delComp = delComp;
	}
	public String getProjId() {
		return projId;
	}
	public void setProjId(String projId) {
		this.projId = projId;
	}
	public String getUpdUser() {
		return updUser;
	}
	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}
	public String getHospId() {
		return hospId;
	}
	public void setHospId(String hospId) {
		this.hospId = hospId;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getMaterialName() {
		return materialName;
	}
	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}
	public String getFormId() {
		return formId;
	}
	public void setFormId(String formId) {
		this.formId = formId;
	}
	public String getHospProCatId() {
		return hospProCatId;
	}
	public void setHospProCatId(String hospProCatId) {
		this.hospProCatId = hospProCatId;
	}
	public String getProLimitPrice() {
		return proLimitPrice;
	}
	public void setProLimitPrice(String proLimitPrice) {
		this.proLimitPrice = proLimitPrice;
	}
	public String getDelCompId() {
		return delCompId;
	}
	public void setDelCompId(String delCompId) {
		this.delCompId = delCompId;
	}
	
	public String getBakCatalog() {
		return bakCatalog;
	}
	
	public void setBakCatalog(String bakCatalog) {
		this.bakCatalog = bakCatalog;
	}
	public String getProdCompId() {
		return prodCompId;
	}
	public void setProdCompId(String prodCompId) {
		this.prodCompId = prodCompId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getAllPrice() {
		return allPrice;
	}
	public void setAllPrice(String allPrice) {
		this.allPrice = allPrice;
	}
	public String getProMoney() {
		return proMoney;
	}
	public void setProMoney(String proMoney) {
		this.proMoney = proMoney;
	}
	@Override
	public String toString() {
		return "PurPlanForm [goodsCode=" + goodsCode + ", drugCode=" + drugCode
				+ ", drugName=" + drugName + ", formName=" + formName
				+ ", specName=" + specName + ", factor=" + factor + ", unit="
				+ unit + ", compName=" + compName + ", prodCompId="
				+ prodCompId + ", projectName=" + projectName + ", proPrice="
				+ proPrice + ", delComp=" + delComp + ", projId=" + projId
				+ ", updUser=" + updUser + ", hospId=" + hospId + ", status="
				+ status + ", materialName=" + materialName + ", formId="
				+ formId + ", hospProCatId=" + hospProCatId
				+ ", proLimitPrice=" + proLimitPrice + ", delCompId="
				+ delCompId + ", joinPlanUser=" + joinPlanUser + ", userName="
				+ userName + ", joinPlanTime=" + joinPlanTime + ", buyNum="
				+ buyNum + ", allPrice=" + allPrice + ", proMoney=" + proMoney
				+ ", cartId=" + cartId + ", backDrugFlag=" + backDrugFlag
				+ ", lsBackDrugFlag=" + lsBackDrugFlag + ", bakCatalog="
				+ bakCatalog + ", buyPrice=" + buyPrice + ", main=" + main
				+ ", cartIds=" + cartIds + ", drugId=" + drugId
				+ ", catalogInfo=" + catalogInfo + ", beginTime=" + beginTime
				+ ", endTime=" + endTime + ", hospCode=" + hospCode
				+ ", goodsSource=" + goodsSource + ", bakPurCount="
				+ bakPurCount + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((allPrice == null) ? 0 : allPrice.hashCode());
		result = prime * result
				+ ((backDrugFlag == null) ? 0 : backDrugFlag.hashCode());
		result = prime * result
				+ ((bakCatalog == null) ? 0 : bakCatalog.hashCode());
		result = prime * result
				+ ((bakPurCount == null) ? 0 : bakPurCount.hashCode());
		result = prime * result
				+ ((beginTime == null) ? 0 : beginTime.hashCode());
		result = prime * result + ((buyNum == null) ? 0 : buyNum.hashCode());
		result = prime * result
				+ ((buyPrice == null) ? 0 : buyPrice.hashCode());
		result = prime * result + ((cartId == null) ? 0 : cartId.hashCode());
		result = prime * result + ((cartIds == null) ? 0 : cartIds.hashCode());
		result = prime * result
				+ ((catalogInfo == null) ? 0 : catalogInfo.hashCode());
		result = prime * result
				+ ((compName == null) ? 0 : compName.hashCode());
		result = prime * result + ((delComp == null) ? 0 : delComp.hashCode());
		result = prime * result
				+ ((delCompId == null) ? 0 : delCompId.hashCode());
		result = prime * result
				+ ((drugCode == null) ? 0 : drugCode.hashCode());
		result = prime * result + ((drugId == null) ? 0 : drugId.hashCode());
		result = prime * result
				+ ((drugName == null) ? 0 : drugName.hashCode());
		result = prime * result + ((endTime == null) ? 0 : endTime.hashCode());
		result = prime * result + ((factor == null) ? 0 : factor.hashCode());
		result = prime * result + ((formId == null) ? 0 : formId.hashCode());
		result = prime * result
				+ ((formName == null) ? 0 : formName.hashCode());
		result = prime * result
				+ ((goodsCode == null) ? 0 : goodsCode.hashCode());
		result = prime * result
				+ ((goodsSource == null) ? 0 : goodsSource.hashCode());
		result = prime * result
				+ ((hospCode == null) ? 0 : hospCode.hashCode());
		result = prime * result + ((hospId == null) ? 0 : hospId.hashCode());
		result = prime * result
				+ ((hospProCatId == null) ? 0 : hospProCatId.hashCode());
		result = prime * result
				+ ((joinPlanTime == null) ? 0 : joinPlanTime.hashCode());
		result = prime * result
				+ ((joinPlanUser == null) ? 0 : joinPlanUser.hashCode());
		result = prime * result + (lsBackDrugFlag ? 1231 : 1237);
		result = prime * result + ((main == null) ? 0 : main.hashCode());
		result = prime * result
				+ ((materialName == null) ? 0 : materialName.hashCode());
		result = prime * result
				+ ((proLimitPrice == null) ? 0 : proLimitPrice.hashCode());
		result = prime * result
				+ ((proMoney == null) ? 0 : proMoney.hashCode());
		result = prime * result
				+ ((proPrice == null) ? 0 : proPrice.hashCode());
		result = prime * result
				+ ((prodCompId == null) ? 0 : prodCompId.hashCode());
		result = prime * result + ((projId == null) ? 0 : projId.hashCode());
		result = prime * result
				+ ((projectName == null) ? 0 : projectName.hashCode());
		result = prime * result
				+ ((specName == null) ? 0 : specName.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result + ((unit == null) ? 0 : unit.hashCode());
		result = prime * result + ((updUser == null) ? 0 : updUser.hashCode());
		result = prime * result
				+ ((userName == null) ? 0 : userName.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PurPlanForm other = (PurPlanForm) obj;
		if (allPrice == null) {
			if (other.allPrice != null)
				return false;
		} else if (!allPrice.equals(other.allPrice))
			return false;
		if (backDrugFlag == null) {
			if (other.backDrugFlag != null)
				return false;
		} else if (!backDrugFlag.equals(other.backDrugFlag))
			return false;
		if (bakCatalog == null) {
			if (other.bakCatalog != null)
				return false;
		} else if (!bakCatalog.equals(other.bakCatalog))
			return false;
		if (bakPurCount == null) {
			if (other.bakPurCount != null)
				return false;
		} else if (!bakPurCount.equals(other.bakPurCount))
			return false;
		if (beginTime == null) {
			if (other.beginTime != null)
				return false;
		} else if (!beginTime.equals(other.beginTime))
			return false;
		if (buyNum == null) {
			if (other.buyNum != null)
				return false;
		} else if (!buyNum.equals(other.buyNum))
			return false;
		if (buyPrice == null) {
			if (other.buyPrice != null)
				return false;
		} else if (!buyPrice.equals(other.buyPrice))
			return false;
		if (cartId == null) {
			if (other.cartId != null)
				return false;
		} else if (!cartId.equals(other.cartId))
			return false;
		if (cartIds == null) {
			if (other.cartIds != null)
				return false;
		} else if (!cartIds.equals(other.cartIds))
			return false;
		if (catalogInfo == null) {
			if (other.catalogInfo != null)
				return false;
		} else if (!catalogInfo.equals(other.catalogInfo))
			return false;
		if (compName == null) {
			if (other.compName != null)
				return false;
		} else if (!compName.equals(other.compName))
			return false;
		if (delComp == null) {
			if (other.delComp != null)
				return false;
		} else if (!delComp.equals(other.delComp))
			return false;
		if (delCompId == null) {
			if (other.delCompId != null)
				return false;
		} else if (!delCompId.equals(other.delCompId))
			return false;
		if (drugCode == null) {
			if (other.drugCode != null)
				return false;
		} else if (!drugCode.equals(other.drugCode))
			return false;
		if (drugId == null) {
			if (other.drugId != null)
				return false;
		} else if (!drugId.equals(other.drugId))
			return false;
		if (drugName == null) {
			if (other.drugName != null)
				return false;
		} else if (!drugName.equals(other.drugName))
			return false;
		if (endTime == null) {
			if (other.endTime != null)
				return false;
		} else if (!endTime.equals(other.endTime))
			return false;
		if (factor == null) {
			if (other.factor != null)
				return false;
		} else if (!factor.equals(other.factor))
			return false;
		if (formId == null) {
			if (other.formId != null)
				return false;
		} else if (!formId.equals(other.formId))
			return false;
		if (formName == null) {
			if (other.formName != null)
				return false;
		} else if (!formName.equals(other.formName))
			return false;
		if (goodsCode == null) {
			if (other.goodsCode != null)
				return false;
		} else if (!goodsCode.equals(other.goodsCode))
			return false;
		if (goodsSource == null) {
			if (other.goodsSource != null)
				return false;
		} else if (!goodsSource.equals(other.goodsSource))
			return false;
		if (hospCode == null) {
			if (other.hospCode != null)
				return false;
		} else if (!hospCode.equals(other.hospCode))
			return false;
		if (hospId == null) {
			if (other.hospId != null)
				return false;
		} else if (!hospId.equals(other.hospId))
			return false;
		if (hospProCatId == null) {
			if (other.hospProCatId != null)
				return false;
		} else if (!hospProCatId.equals(other.hospProCatId))
			return false;
		if (joinPlanTime == null) {
			if (other.joinPlanTime != null)
				return false;
		} else if (!joinPlanTime.equals(other.joinPlanTime))
			return false;
		if (joinPlanUser == null) {
			if (other.joinPlanUser != null)
				return false;
		} else if (!joinPlanUser.equals(other.joinPlanUser))
			return false;
		if (lsBackDrugFlag != other.lsBackDrugFlag)
			return false;
		if (main == null) {
			if (other.main != null)
				return false;
		} else if (!main.equals(other.main))
			return false;
		if (materialName == null) {
			if (other.materialName != null)
				return false;
		} else if (!materialName.equals(other.materialName))
			return false;
		if (proLimitPrice == null) {
			if (other.proLimitPrice != null)
				return false;
		} else if (!proLimitPrice.equals(other.proLimitPrice))
			return false;
		if (proMoney == null) {
			if (other.proMoney != null)
				return false;
		} else if (!proMoney.equals(other.proMoney))
			return false;
		if (proPrice == null) {
			if (other.proPrice != null)
				return false;
		} else if (!proPrice.equals(other.proPrice))
			return false;
		if (prodCompId == null) {
			if (other.prodCompId != null)
				return false;
		} else if (!prodCompId.equals(other.prodCompId))
			return false;
		if (projId == null) {
			if (other.projId != null)
				return false;
		} else if (!projId.equals(other.projId))
			return false;
		if (projectName == null) {
			if (other.projectName != null)
				return false;
		} else if (!projectName.equals(other.projectName))
			return false;
		if (specName == null) {
			if (other.specName != null)
				return false;
		} else if (!specName.equals(other.specName))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals(other.status))
			return false;
		if (unit == null) {
			if (other.unit != null)
				return false;
		} else if (!unit.equals(other.unit))
			return false;
		if (updUser == null) {
			if (other.updUser != null)
				return false;
		} else if (!updUser.equals(other.updUser))
			return false;
		if (userName == null) {
			if (other.userName != null)
				return false;
		} else if (!userName.equals(other.userName))
			return false;
		return true;
	}
	
	
}